<html>
<head>
	<title>Excersise 2</title>
	<link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
	<div id="js-console"></div>
	<script src="scripts/js-console.js"></script>
	<script>
	var numberOne = -10;
	var numberTwo = 10;
	var numberThree = -20;
	if (((numberOne == 0) || (numberTwo == 0) || (numberThree == 0)))
	{
		jsConsole.writeLine("product is zero");
	}
	else
	{
		if (numberOne < 0)
		{
			if (numberTwo < 0)
			{
				if (numberThree < 0)
				{
					jsConsole.writeLine("product of " + numberOne + ", " + numberTwo + " and " + numberThree + " is negative");
				}
				else
				{
					jsConsole.writeLine("product of " + numberOne + ", " + numberTwo + " and " + numberThree + " is positive");
				}
			}
			else
			{
				if (numberThree < 0)
				{
					jsConsole.writeLine("product of " + numberOne + ", " + numberTwo + " and " + numberThree + " is positive");			
				}
				else
				{
					jsConsole.writeLine("product of " + numberOne + ", " + numberTwo + " and " + numberThree + " is negative");
				}
			}
		}
		else
		{
			if (numberTwo < 0)
			{
				if(numberThree < 0)
				{
					jsConsole.writeLine("product of " + numberOne + ", " + numberTwo + " and " + numberThree + " is positive");	
				}
				else
				{
					jsConsole.writeLine("product of " + numberOne + ", " + numberTwo + " and " + numberThree + " is negative");
				}
			}
			else
			{
				if(numberThree < 0)
				{
					jsConsole.writeLine("product of " + numberOne + ", " + numberTwo + " and " + numberthree + " is negative");
				}
				else
				{
					jsConsole.writeLine("product of " + numberOne + ", " + numberTwo + " and " + numberthree + " is positive");	
				}
			}
		}
	}


	</script>
</body>
</html>
